package com.kaka.jsonmap.model;

import lombok.Data;

import java.util.List;
import java.util.Map;

/**
 * Main configuration class for interface mapping
 */
@Data
public class MappingConfig {

    private String version;
    private String name;
    private Map<String, Map<String, String>> dictMap; // 字典映射
    private List<InterfaceMapping> interfaces;


    public Map<String, Object> getRequestBody() {
        if (interfaces != null && !interfaces.isEmpty()) {
            return interfaces.get(0).getRequestBody();
        }
        return null;
    }
} 